package com.gthncz;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;

public class BeanPostProcessorImpl implements BeanPostProcessor {

    public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
        System.out.println(">>> postProcessBeforeInitialization.");
        System.out.println(bean);
        System.out.println("-------------------------------");
        return bean;
    }

    public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
        System.out.println("<<< postProcessAfterInitialization.");
        System.out.println(bean);
        System.out.println("-------------------------------");
        return bean;
    }
}
